<?php
require_once("conndb.php");
$link = connect();
$id = $_REQUEST['id'];
$xh = $_REQUEST['xh'];
$xm = $_REQUEST['xm'];
$xb = $_REQUEST['xb'];
$bjid = $_REQUEST['bjid'];
//编辑1条数据
$sql = "update student set xh='".$xh."',xm='".$xm."',xb='".$xb."',bjid=".$bjid." where id=".$id;

$result = mysqli_query($link,
      $sql);

header("location:index.php");
?>